package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Data
@Component
@TableName("item")
public class Item {
    @TableId(value = "itemid",type = IdType.INPUT)
    private int itemId;
    @TableField(value = "productid")
    private int productId;
    @TableField(value = "listprice")
    private BigDecimal listPrice;
    private String name;
    @TableField(value = "supplier")
    private int supplierId;
    private int status;
    @TableField(value = "attr1")
    private String attribute1;
    @TableField(value = "attr2")
    private String attribute2;
    @TableField(value = "attr3")
    private String attribute3;
    private int stock;
    private double score;
    private String description;
    private int sales;
    private String location;
}
